package com.hs.jpademo1.service;

import com.hs.jpademo1.entity.Student;
import org.springframework.data.domain.Page;

import javax.persistence.criteria.CriteriaBuilder;

public interface StudentService {
    Page<Student> findByPage(Integer pageNum, Integer pageSize);

    Student findById(Integer id);

    int updateStudent(Student student);

    int addStudent(Student student);

    int removeStudent(Integer id);

    Page<Student> findByCondition(Integer pageNum, Integer pageSize,Student student);
}
